package com.app;

import android.app.AlarmManager;

import com.google.common.collect.ImmutableList;

public class Const {
	public static final float FILTERS_DISTANCE_MIN = 1;
	public static final float FILTERS_DISTANCE_MAX = 25;
	
	public static final String GOOGLE_PLACES_TYPE = "gas_station";
	public static final String GOOGLE_PLACES_API_KEY = "AIzaSyAJblf-anPf8K42GPMKFC5D9wYvR1Jp4Sc";
	
	public static final String FILTERS_STATION_SHELL = "Shell";
	public static final String FILTERS_STATION_ULTRAMAR = "Ultramar";
	public static final String FILTERS_STATION_PETRO_CANADA = "Petro Canada";
	public static final String FILTERS_STATION_ESSO = "Esso";
	public static final String FILTERS_STATION_OTHERS = "Others";
	
	public static final String SETTINGS_FILTERS = "FILTER";
	public static final String SETTINGS_FILTERS_DISTANCE = "DISTANCE";
	public static final ImmutableList<String> SETTINGS_FILTERS_STATIONS = 
			ImmutableList.of(
					FILTERS_STATION_SHELL,
					FILTERS_STATION_ULTRAMAR,
					FILTERS_STATION_PETRO_CANADA,
					FILTERS_STATION_ESSO);

	
	public static final long MAX_TIME_UPDATE = AlarmManager.INTERVAL_FIFTEEN_MINUTES;
	public static final int MAX_DISTANCE_UPDATE = 50;
    public static int PASSIVE_MAX_DISTANCE = MAX_DISTANCE_UPDATE;
    // The location update time for passive updates
    public static long PASSIVE_MAX_TIME = AlarmManager.INTERVAL_HALF_DAY;
	
	public static boolean USE_GPS_WHEN_ACTIVITY_VISIBLE = true;
	
    public static final String INTENT_EXTRA_GEO_LAT = "geo_lat";
    public static final String INTENT_EXTRA_GEO_LNG = "geo_lng";
    public static final String INTENT_EXTRA_FORCE_UPDATE = "force_update";
	
    public static final String SHARED_PREFERENCE_FILE = "gaswatcher_prefs";
    
    public static interface PrefsNames {
        final String LAST_UPDATE_LAT = "prefs_last_update_lat";
        final String LAST_UPDATE_LNG = "prefs_last_update_lng";
        final String LAST_UPDATE_TIME_GEO = "prefs_last_update_time_geo";
        final String FOLLOW_LOCATION_CHANGES = "prefs_follow_location_changes";
    }
	
    public static final String LOCATION_PROVIDER_DEFAULT = "DefaultLocationProvider";
    public static final String LOCATION_PROVIDER_LONG_PRESS = "LongPressLocationProvider";
    public static final String LOCATION_PROVIDER_SEARCH = "SearchLocationProvider";
    public static final String LOCATION_PROVIDER_INTENT = "IntentLocationProvider";
    public static final String LOCATION_PROVIDER_PREFS = "PrefsLocationProvider";
    public static final String LOCATION_PROVIDER_SERVICE = "ServiceLocationProvider";
    
	//public static boolean SUPPORTS_JELLY_BEAN = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN;
    public static boolean SUPPORTS_ICS = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;
    public static boolean SUPPORTS_HONEYCOMB = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB;
    public static boolean SUPPORTS_GINGERBREAD = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD;
    
    public static String ACTIVE_LOCATION_UPDATE_PROVIDER_DISABLED = "ca.gaswatchermtl.data.ACTIVE_LOCATION_UPDATE_PROVIDER_DISABLED";
	
    public static String EXTRA_KEY_IN_BACKGROUND = "extra_key_in_background";
    
    public static boolean DISABLE_PASSIVE_LOCATION_WHEN_USER_EXIT = false;
    
    
}
